import Vue from 'vue'
import './plugins/axios'
import App from './App.vue'
import router from './router'
import store from './store'
// import Vant from 'vant' // 全局引入
import { Tabbar, TabbarItem, Search, Image as VanImage, PullRefresh, Swipe, SwipeItem, Form, Field, Button, Tab, Tabs, Toast, Grid, GridItem, Overlay, Loading, Sidebar, SidebarItem, Icon, Tag, DropdownMenu, DropdownItem, Lazyload, List, Cell, CellGroup, Skeleton, Card, Sku, GoodsAction, GoodsActionIcon, GoodsActionButton, Divider, Empty, ShareSheet, Checkbox, CheckboxGroup, Collapse, CollapseItem, Stepper, Step, Steps, Circle, Dialog, ActionSheet, Uploader, Popup, AddressList, AddressEdit, SwipeCell } from 'vant' // 需安装babel-plugin-import，并配置babel.config.js

import VueAwesomeSwiper from 'vue-awesome-swiper'
// import 'swiper/dist/css/swiper.css'

import '@/assets/css/common.less'
import '@/assets/css/animate.css'
import "swiper/swiper-bundle.css";
import 'amfe-flexible'

Vue.config.productionTip = false

Vue
  .use(VueAwesomeSwiper)
  .use(Tabbar)
  .use(TabbarItem)
  .use(Search)
  .use(VanImage)
  .use(PullRefresh)
  .use(Swipe)
  .use(SwipeItem)
  .use(Form)
  .use(Field)
  .use(Button)
  .use(Tab)
  .use(Tabs)
  .use(Toast)
  .use(Grid)
  .use(GridItem)
  .use(Overlay)
  .use(Loading)
  .use(Sidebar)
  .use(SidebarItem)
  .use(Icon)
  .use(Tag)
  .use(DropdownMenu)
  .use(DropdownItem)
  .use(Lazyload)
  .use(List)
  .use(Cell)
  .use(CellGroup)
  .use(Skeleton)
  .use(Card)
  .use(Sku)
  .use(GoodsAction)
  .use(GoodsActionIcon)
  .use(GoodsActionButton)
  .use(Divider)
  .use(Empty)
  .use(ShareSheet)
  .use(Checkbox)
  .use(CheckboxGroup)
  .use(Collapse)
  .use(CollapseItem)
  .use(Stepper)
  .use(Step)
  .use(Steps)
  .use(Circle)
  .use(Dialog)
  .use(ActionSheet)
  .use(Uploader)
  .use(Popup)
  .use(AddressList)
  .use(AddressEdit)
  .use(SwipeCell)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
